<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.List"%>
<%@ page import="com.entity.Product"%>
<%@ page import="com.action.Main1Action"%>
<%@ page import="com.form.Main1Form"%>

<html>
<head>
<script type="text/javascript">
	function modoru() {
		history.back();
	}
</script>
<title>メイン画面2</title>
<style type="text/css">
body {
	background-color: #8FBC8F;
}

.center {
	text-align: center;
}

h1 {
	margin-top: 60px;
	width: 30%;
	background-color: #00BFFF;
}

.mytable {
	border-collapse: collapse;
}

.mytable th {
	font-weight: bold;
	background-color: #cccccc;
}

.mytable th,.mytable td {
	width: 110px;
	height: 35px;
	border: 1px solid black;
}
</style>
</head>
<body>
	<div class="center">
		<h1>商品管理システム(仮)</h1>
	</div>
	<br> 一覧 <br> <br> <center> <br> <br>
						<html:form method="post" action="/main2.do">
							<table class="mytable">
								<th></th>
								<th>大分類</th>
								<th>中分類</th>
								<th>小分類</th>
								<th>販売社</th>
								<th>商品名</th>
								</tr>


								<logic:iterate id="product" name="products">
									<tr bgcolor="#FFFFFF">
										<td>
											<%
												out.print("<input type='radio' name='productId' value='");
											%><bean:write name="product" property="productId" />
											<%
												out.print("'>");
											%>
										</td>

										<td><bean:write name="product" property="productKbnA" /></td>
										<td><bean:write name="product" property="productKbnB" /></td>
										<td><bean:write name="product" property="productKbnC" /></td>
										<td><bean:write name="product" property="maker" /></td>
										<td><bean:write name="product" property="productName" /></td>

									</tr>
								</logic:iterate>
							</table>
							<br> <br> <html:submit property="syousai" value="詳細">
									</html:submit> <input type="button" value="戻る" onclick="modoru()">
						</html:form>
				</center>
</body>
</html>